#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int mul();
	int a = 0;
	scanf("%d", &a);
	mul(a);

}
int mul(int x)
{
	int i = 0;
	int j = 0;
	for (i = 1; i <= x; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%d*%d=%d\t", j, i, i * j);
		}
		printf("\n");
	}
}